<%@ Page Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="login.aspx.cs" Inherits="login" Title="Untitled Page" %>

<%@ Register Src="~/controls/wucValidator.ascx" TagName="Validator" TagPrefix="wuc" %>
<%@ Register  Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">

    <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
    <div class="regular-pages inline">
        <fieldset>
            <legend>Returning Customer</legend>
            <asp:Panel runat="server" ID="pnlLogin" DefaultButton="btnLogin">
                <label>
                    E-Mail Address</label><br />
                <asp:TextBox ID="tbxEmailAddress" runat="server" CssClass="text" TabIndex="10"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmailAddress" runat="server" ControlToValidate="tbxEmailAddress"
                    ErrorMessage="E-Mail Address is required" Display="Dynamic" SetFocusOnError="true"
                    EnableClientScript="true"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revPersonalEmailAddress" ControlToValidate="tbxEmailAddress"
                    EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                    ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic">
                </asp:RegularExpressionValidator><br />
                <label>
                    Password:</label><br />
                <asp:TextBox ID="tbxPassword" runat="server" CssClass="text" TextMode="password"
                    TabIndex="20"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="tbxPassword"
                    ErrorMessage="Password is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true">
                </asp:RequiredFieldValidator><br />
                <asp:CheckBox ID="cbxRemember" runat="server" TabIndex="30" />
                <label>
                    Remember me</label>
                [ 
                    <asp:HyperLink ID="hplForgotPassword" runat="server" CssClass="redlnk">Forgot Password?</asp:HyperLink>
                ]
                <br class="clear" />
            </asp:Panel>
            <br />
                <asp:Button ID="btnLogin" Text="Log In" CssClass="button small white" CausesValidation="false"
                    OnClick="btnLogin_Click" runat="server" /><br />
        </fieldset>
        <fieldset>
            <legend>New Customer</legend><strong>I am a new customer.</strong>
            <p>
                By creating an account you will be able to shop faster, be up to date on an orders
                status, and keep track of the orders you have previously made.
              
    
                </p>

                <p>        <asp:LinkButton ID="btnCreateAccount" runat="server" CssClass="button small gray" Text="Create Account"
                CausesValidation="false" onclick="btnCreateAccount_Click" ></asp:LinkButton></p>

            
            <strong>Proceed Directly to Checkout</strong>
            <p>Proceed to Checkout without creating an account. By choosing this option none of
                your user information will be kept in our records, and you will not be able to review
                your order status, nor keep track of your previous orders.
                
                </p>
            <p>   
                
                      <asp:Button ID="btnCheckOut" runat="server" CssClass="button small red" 
                Text="Checkout" CausesValidation="false" onclick="btnCheckOut_Click" />
               </p>
          
        </fieldset>
    </div>
</asp:Content>
